<?php echo $this->Html->script(array('ckeditor/ckeditor')); ?>
<div class="categories form">
    <?php echo $this->Form->create('DataParamB', array('type' => 'file')); ?>
    <fieldset>
        <div class="input-content">
            <?php echo $this->Form->input('id', array('type' => 'hidden')); ?>
            <div class="input ">
                <label for="question">
                    account_id
                    <span>*</span>
                </label>
                 <?php
                         echo $this->Form->input('account_id', array(
                             'type' => 'select',
                             'options' => $dataPrama,
                             'empty' => 'please select a one',
                             'label' => false,
                             'div' => false,
                                 )
                         );
                         ?>
                <div class="error-message" id="accountError"></div>
            </div>
            <div class="input ">
                <label for="question">
                    rr_no
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('rr_no', array('label' => false, 'div' => false)); ?>
                <div class="error-message" id="languageError"></div>
            </div>
            <div class="input ">
                <label for="question">
                    tariff
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('tariff', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="tariffError"></div>
            </div>
            <div class="input ">
                <label for="link_image">
                    sdo_no
                </label>
                <?php echo $this->Form->input('sdo_no', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="sdonoErrror"></div>

            </div>
            <div class="input ">
                <label for="external_link">
                    mr_code
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('mr_code', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="mrcodeError"></div>
            </div>
            <div class="input ">
                <label for="answer_1">
                    pin_code
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('pin_code', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="pincodeError"></div>
            </div>
            <div class="input ">
                <label for="answer_2">
                    spot_solio
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('spot_solio', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="spotsolioError"></div>
            </div>
            <div class="input ">
                <label for="answer_3">
                    reading_date
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('reading_date', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="readdingdateError"></div>
            </div>
            <div class="input ">
                <label for="answer_4">
                    salutation
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('salutation', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="salutationError"></div>
            </div>
            <div class="input ">
                <label for="Clue">
                    full_name
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('full_name', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="fullnameError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    ower_occupier_maintenance_manager
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('ower_occupier_maintenance_manager', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="answerTrueError"></div>
            </div>

            <div class="input ">
                <label for="answer_true">
                    stress
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('stress', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="stressError"></div>
            </div>

            <div class="input ">
                <label for="answer_true">
                    network_operator
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('network_operator', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="networkoperatorError"></div>
            </div>

            <div class="input ">
                <label for="answer_true">
                   languages_communication
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('languages_communication', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="languagesError"></div>
            </div>

            <div class="input ">
                <label for="answer_true">
                   door_no
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('door_no', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="doornoError"></div>
            </div>

            <div class="input ">
                <label for="answer_true">
                    house_apartment_complex_company_name
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('house_apartment_complex_company_name', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="houseapartementError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    occupant_flow_details
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('occupant_flow_details', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="occupantflowdetailsError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    main_road
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('main_road', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="mainroadError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    cross_road
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('cross_road', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="crossroadError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    block_stage
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('block_stage', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="blockstageError"></div>
            </div>

            <div class="input ">
                <label for="answer_true">
                    layout_name
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('layout_name', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="layoutError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    slum_name
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('slum_name', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="slumnameError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    area
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('area', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="areaError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    district
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('district', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="districtError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    land_mark
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('land_mark', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="landmarkError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    remarks
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('remarks', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="remarkError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    address
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('address', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="addressError"></div>
            </div>
            <div class="input ">
                <label for="answer_true">
                    note
                    <span>*</span>
                </label>
                <?php echo $this->Form->input('note', array('class' => 'placeholder', 'placeholder' => '', 'label' => false, 'div' => false)); ?>
                <div class="error-message" id="noteError"></div>
            </div>


        </div>

        <div class="submit">
<?php echo $this->
Form->submit("", array('class' => 'save', 'id' => 'btnSave'));
?>
            <a href="javascript:resetForm()" id="resetForm" class="reset">Reset</a>
        </div>
    </fieldset>
    
</div>
<script>
    function readURL(input) {
        if (input.files && input.files[0]) {
            var reader = new FileReader();

            reader.onload = function(e) {
                $('#image_show')
                        .attr('src', e.target.result)
                        .width(200)
                        .height(200);
            };

            reader.readAsDataURL(input.files[0]);
        }
    }
    $("#btnSave").click(function() {
        var validateTile = new validate("NewsTitle", "errorTitle", "This field is not empty.");
        var result = validateTile.notEmpty();
        if (!(result))
        {
            $('html, body').animate({scrollTop: 0}, 'slow');
        }
        return result;
    });
    function resetForm()
    {
        window.location.reload();
    }
</script>